import 'package:flutter/material.dart';
import 'package:jm_flutter/jm_flutter.dart';

class MyVisibility extends StatelessWidget {
  final Widget child;
  final bool visible;
  final bool maintainBuild;

  const MyVisibility(
      {super.key,
      required this.child,
      required this.visible,
      this.maintainBuild = true});

  @override
  Widget build(BuildContext context) {
    return MyText("data");
    // if (!visible && !maintainBuild) {
    //   logd("MyVisibility", "maintainBuild: $maintainBuild");
    //   return const SizedBox();
    // }
    // return Visibility(
    //   key: key,
    //   visible: visible,
    //   child: child,
    // );
  }
}
